Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.6] Moving code from the query builder to the eloquent builder #23357

Merged
merged 1 commit into from Mar 1, 2018
Merged

[5.6] Moving code from the query builder to the eloquent builder #23357

merged 1 commit into from Mar 1, 2018

Conversation

ghost
Copy link

@ghost ghost commented Mar 1, 2018

A previous pull request #19013, which aimed to solve the issue of multiple select statements causing an SQL error within a withCount function, assumed a sub query would only need one select statement.

This is not the case, so the code that removes excess filters is moved to the withCount method where the sub query does only need one select.

A previous pull request #19013, which aimed to solve the issue of multiple select statements causing an SQL error within a withCount function, assumed a sub query would only need one select statement.

This is not the case, so the code that removes excess filters is moved to the withCount method where the sub query does only need one select.
@ghost
Copy link
Author

ghost commented Mar 1, 2018

Resubmitting with passing test

@GrahamCampbell GrahamCampbell changed the title #23327 Moving code from the query builder to the eloquent builder [5.6] Moving code from the query builder to the eloquent builder Mar 1, 2018
@GrahamCampbell GrahamCampbell changed the title [5.6] Moving code from the query builder to the eloquent builder [5.6] Moving code from the query builder to the eloquent builder Mar 1, 2018
@taylorotwell taylorotwell merged commit 0556a4a into laravel:5.6 Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants